package com.jxl.springboot.game.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * 用户表
 *
 * @author 江雪林
 * @create 2021-03-29
 */
public class User {
    private Integer id;//主键id
    private String username;//开发者帐号
    private String devName;//开发者名称
    private String password;//开发者密码
    private String devEmail;//开发者电子邮箱
    private String devInfo;//开发者简介
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date regTm;//创建时间
    private Integer modifyor;//更新者（来源于backend_user用户表的用户id）
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date modifyTm;//最新更新时间
    private String role;//角色

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDevEmail() {
        return devEmail;
    }

    public void setDevEmail(String devEmail) {
        this.devEmail = devEmail;
    }

    public String getDevInfo() {
        return devInfo;
    }

    public void setDevInfo(String devInfo) {
        this.devInfo = devInfo;
    }

    public Date getRegTm() {
        return regTm;
    }

    public void setRegTm(Date regTm) {
        this.regTm = regTm;
    }

    public Integer getModifyor() {
        return modifyor;
    }

    public void setModifyor(Integer modifyor) {
        this.modifyor = modifyor;
    }

    public Date getModifyTm() {
        return modifyTm;
    }

    public void setModifyTm(Date modifyTm) {
        this.modifyTm = modifyTm;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", devName='" + devName + '\'' +
                ", password='" + password + '\'' +
                ", devEmail='" + devEmail + '\'' +
                ", devInfo='" + devInfo + '\'' +
                ", regTm=" + regTm +
                ", modifyor=" + modifyor +
                ", modifyTm=" + modifyTm +
                ", role='" + role + '\'' +
                '}';
    }
}
